package com.hl.card.credit.service;

import com.github.pagehelper.PageInfo;
import com.hl.card.credit.domain.CreditCardOrder;
import com.hl.card.credit.domain.CreditCardOrderVo;
import java.util.List;
import java.util.Map;
public interface CreditCardOrderService {
    void saveVo(CreditCardOrderVo orderVo);
    void update(CreditCardOrder user);
    CreditCardOrder findById(Long id);
    CreditCardOrder findByOrderId(String orderId);
    List<CreditCardOrder> list(String phone);
    PageInfo<CreditCardOrder> list(String phone, Integer start, Integer pageSize);
    List<CreditCardOrder> findListByList(List<String> orderids);
    boolean checkToken(String token);
    CreditCardOrder getSatusByOrderCode(String orderCode);
    CreditCardOrder getSatusByOrderId(String orderId);
    long countApplayOrder();
    Map getRecommendApplayOrder(String userId);
    Map getRecommendApplayOrderPage(String userId, int pageNum, int pageSize);
    Map getRecommendApplayInfo(String userId);
    List<CreditCardOrder> listAll(String  condition);
    Map listAll(int offset,int pageSize);
    List<CreditCardOrder> findOrdersByUserId(String userId);
    //发送奖励服务
    String reward(CreditCardOrder order);

    String updateUserRelation(String user,String parent);

}
